package com.sxj.corejava.code01;

/**
 * @author 石小俊
 * @date 2025年01月02日
 */
public class Test02_变量的命名规范 {

    public static void main(String[] args) {
        int num1 = 1;
        // int 1num = 1; // 不能以数字开头
        // int num 1 = 1; // 不能包含空格
        // int int = 1; // 不能使用关键字
        // int goto = 1; // 不能使用保留字
        // 可以包含关键字或者保留字
        int int1 = 1;
        int const1 = 1;
        int age = 18,AGE = 20;
        System.out.println(age);
        System.out.println(AGE);
        int ageageageageageageageageageageageageageageageageageageageageageageageageageageageageage = 18;
        System.out.println(ageageageageageageageageageageageageageageageageageageageageageageageageageageageageage);
        // 按照编码规范,变量名由小写字母开头,多个单词时除了第一个单词以外的所有单词的首字母大写,其他字母小写
        // 驼峰命名法
        int studentAge = 18;
    }

}
